class Option(object):
    device = 'cpu'  #有self 才是类成员??


    def _parser(self,**kargs):

        print(kargs)

        for k,v in kargs:
            print(k,':',v)
            if k in hasattr(self,k):
                setattr(self,k,v)
        for k, v in self.__class__.__dict__.items():
            if not k.startswith('_'):
                print(k, getattr(self, k))

opt = Option()


